// pages/component/nav_list/1/index.js
const { $wx } = getApp()
Page({
    data: {
        data: [
            { title:'导航', url:'/pages/component/search/1/index', icon:'icon/1.png' },
            { title:'导航', url:'/pages/component/search/1/index', icon:'icon/1.png', leftSlot:'slot-1', rightSlot:'slot-2' },
            { title:'触发事件', onTap:'onTap', icon:'icon/1.png' },
        ]
    },
    onTap({ detail: { onTap, title } }){
        switch(onTap){
            case 'onTap':
                $wx.msg.info(title)
                break
        }
    },
})